export default {
    getSureOrderMsg(state,sureOrderMsg){
        if( state.sureOrderMsg && Object.assign(state.sureOrderMsg).length > 0 ){
            return state.sureOrderMsg
        }
        let sessionSureOrderMsg = window.sessionStorage.getItem('sureOrderMsg') ? window.sessionStorage.getItem('sureOrderMsg') : {};
        return sessionSureOrderMsg;
    },
    getSendWayMsg(state,sendWay){
        if( state.sendWay && Object.assign(state.sendWay).length > 0 ){
            // console.log(state.sendWay)
            return state.sendWay
        }
        let sessionOrderSendWay = window.sessionStorage.getItem('orderSendWay') ? JSON.parse( window.sessionStorage.getItem('orderSendWay')) : {};
        return sessionOrderSendWay;
    }
}